

              <!-- Begin page content -->
                <div class="container">
				<div class="page-header" style="position:relative;">
                    <h3>My Account</h3>
				</div>
                    
                    <?php
            	if ($use_username) {
				$username = array(
						'name'	=> 'username',
						'id'	=> 'username',
						'value' => set_value('username',$username),
						'maxlength'	=> $this->config->item('username_max_length', 'tank_auth'),
						'size'	=> 30,
					);
				}
				
				$email = array(
					'name'	=> 'email',
					'id'	=> 'email',
					'value'	=> set_value('email',$email),
					'maxlength'	=> 80,
					'size'	=> 30,
					'disabled' => 'disabled'
				);
				$password = array(
					'name'	=> 'password',
					'id'	=> 'password',
					'value' => set_value('password'),
					'maxlength'	=> $this->config->item('password_max_length', 'tank_auth'),
					'size'	=> 30,
				);
				$confirm_password = array(
					'name'	=> 'confirm_password',
					'id'	=> 'confirm_password',
					'value' => set_value('confirm_password'),
					'maxlength'	=> $this->config->item('password_max_length', 'tank_auth'),
					'size'	=> 30,
				);
				$captcha = array(
					'name'	=> 'captcha',
					'id'	=> 'captcha',
					'maxlength'	=> 8,
				);
				$attributes = array(
    				'class' => 'control-label',
				);
				?>
				<?php echo form_open($this->uri->uri_string(),'class ="form-horizontal" '); ?>
				<?php echo form_hidden('id_user',set_value('id_user', $id_user),'class ="form-horizontal" ' ); ?>
				<div class="control-group">
                	<?php if ($use_username) { ?>
					<?php echo form_label('Username <span style="color: red;">*</span>', $username['id'], $attributes); ?>
                    <div class="controls">
                    	<?php echo form_input($username); ?>
                    	<?php echo form_error($username['name']); ?>
                       <!-- <?php echo isset($errors[$username['name']])? '<span style="color:#E91510">'.$errors[$username['name']].'</span>' : '' ; ?>-->
                    </div>
                </div>
                <?php } ?>	
                <hr />
				<div class="control-group">
					<?php echo form_label('Password <span style="color: red;">*</span>', $password['id'], $attributes); ?>
                    <div class="controls">
						<?php echo form_password($password); ?>
						<?php echo form_error($password['name']); ?>
                    </div>
                </div>
				<hr />	
				<div class="control-group">	
					<?php echo form_label('Confirm Password <span style="color: red;">*</span>', $confirm_password['id'], $attributes); ?>
                    <div class="controls">
						<?php echo form_password($confirm_password); ?>
						<?php echo form_error($confirm_password['name']); ?>
                	</div>
                </div>
				<hr />
				<div class="control-group">
					<?php echo form_label('Email Address <span style="color: red;">*</span>', $email['id'], $attributes); ?>
                    <div class="controls">
						<?php echo form_input($email); ?>
							<!--<?php echo form_error($email['name']); ?>
							<?php echo isset($errors[$email['name']])? '<span style="color:#E91510">'.$errors[$email['name']].'</span>' : ''; ?>-->
                	</div>
                </div>
				<hr />
                <div class="form-actions">
					<?php echo form_submit('submit', 'Save', 'class="btn btn-primary" type="submit"'); ?>
					<?php echo form_close(); ?>
                </div>
			</div>
		<!--</div>-->

		<div id="push"></div>
	</div>
